home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3480 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: coos.dartmouth.edu!rloisel
  2. From: rloisel@coos.dartmouth.edu (Rodney E. Loisel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AREXX beginner needs help...
  5. Date: 20 Feb 1996 23:34:31 GMT
  6. Organization: Dartmouth College, Hanover, NH, USA
  7. Message-ID: <4gdlq7$uqj@dartvax.dartmouth.edu>
  8. References: <Dn16L1.9ID@emr1.emr.ca>
  9. NNTP-Posting-Host: coos.dartmouth.edu
  10.  
  11. kpratt@emr1.emr.ca (Ken Pratt) writes:
  12.  
  13. >OPEN myfile,'RAM:test,'R'
  14. >DO 1 to 100
  15. >    val=READLN('RAM:test')  /*Doesn't matter what's in the brackets*/
  16. >                            /* end result is that it just gets echo'd*/
  17. >                             /*on the screen*/
  18. >    SAY val
  19. >     END
  20.  
  21. >When run, READLN('RAM:test') is written out over and over.
  22.  
  23. use val= READLN('myfile') not ('RAM:test')
  24.  
  25. also it's best to check a file for EOF instead of a particular number of
  26. lines as the file may not have been successfully written to: 
  27.  
  28. DO UNTIL EOF('myfile')
  29.     val = READLN('myfile')
  30.      say val
  31.      END
  32.  
  33. The reason you get RAM:TEST 100 times is that if ARexx can't identify a
  34. value it uses the literal value, in this case RAM:TEST
  35. >Also, is there a source of beginner level info, other than the manual for 
  36. >AREXX? There wouldn't be a FAQ about AREXX would there?
  37.  
  38. I found a lot of useful info in the Arexx Cookbook by Merrill Callaway.
  39.  
  40. rloiel@coos.dartmouth.edu (Rodney.E.Loisel) Enfield NH USA
  41.